package com.feicheng.persistence.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.Order;
import com.feicheng.persistence.mapper.OrderMapper;
import com.feicheng.persistence.model.OrderMain;
import com.feicheng.persistence.service.IOrderService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    @Override
    public Page<OrderMain> getOrdersByPage(Page<OrderMain> orderMainPage, QueryWrapper<OrderMain> queryWrapper) {
        return this.getBaseMapper().getOrdersByPage(orderMainPage,queryWrapper);
    }

    @Override
    public List<OrderMain> getCalculateTimeMoney(QueryWrapper<OrderMain> orderMainQueryWrapper) {
        return this.getBaseMapper().getCalculateTimeMoney(orderMainQueryWrapper);
    }
}
